import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/login',
      name: 'login',
      component: () => import("@/views/Login.vue")
    },
    {
      path: '/',
      name: 'home',
      component: () => import("@/views/Layout.vue"),
      children: [
        {
          path:'AccountList',
          name:'AccountList',
          component:()=>import( "@/components/AccountList.vue")
        },
        {
      path: '/AddUsers',
      name: 'AddUsers',
      component: () => import("@/views/AddUsers.vue")
     },
      ]

    },
    
    {
      path: '/Password',
      name: 'Password',
      component: () => import("@/views/Password.vue")
    },
  ]
})

export default router
